<html>
    <head>
        <link rel="stylesheet" href="http://www.654320.com/DPlayer/dist/DPlayer.min.css">
        <script src="http://www.654320.com/DPlayer/dist/DPlayer.min.js"></script>
        <script src="https://cdn.jsdelivr.net/npm/hls.js/dist/hls.min.js"></script>
    </head>
    <body>
        <div>
            <object id="player" name="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
            codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10.0.32" 
            data="//weblbs.yystatic.com/s/54880976/54880976/minimain.swf" 
            width="788" height="480">
            <param name="movie" value="//weblbs.yystatic.com/s/54880976/54880976/minimain.swf">
            <param name="flashvars" value="sid=54880976&amp;ssid=54880976&amp;sceneType=1&amp;firstMic=920122342">
            <param name="quality" value="high">
            <param name="allowScriptAccess" value="always">
            <param name="wmode" value="opaque">
            <param name="bgcolor" value="#000000">
            <param name="allowFullScreen" value="false">
            <param name="allowFullScreenInteractive" value="false">
            <embed id="embed_player" name="player" 
                src="//weblbs.yystatic.com/s/54880976/54880976/minimain.swf" 
                allowfullscreen="false" allowfullscreeninteractive="false" 
                allowscriptaccess="always" quality="high" 
                pluginspage="http://www.macromedia.com/go/getflashplayer" 
                flashvars="sid=54880976&amp;ssid=54880976&amp;sceneType=1&amp;firstMic=920122342" 
                type="application/x-shockwave-flash" wmode="opaque" 
                bgcolor="#000000" width="788" height="480">
            </object>
        </div>
    
        <div id="dplayer"></div>
        <script type="text/javascript">
            //var url="http://proxy.hls.yy.com/livesystem/15013_xv_54880976_54880976_0_0_0-15013_xa_54880976_54880976_0_0_0.m3u8?org=yyweb&uuid=4d046b6090c644738aa58486f75d8560&t=1527589151&tk=c59a57e243f985b152a68c5d8d509e28";
            var url="http://www.yy.com/ebea1991-e3c9-46fe-ab9c-bbf8e1d8a416";
            var isWap = navigator.userAgent.match(/iPad|iPhone|iPod|Android/i) != null;
            if(isWap){
                document.getElementById('dplayer').innerHTML='<video autoplay="autoplay" src="'+url+'" controls="controls" preload="auto"  width="100%" height="100%"  webkit-playsinline="" playsinline="" x5-playsinline="" x-webkit-airplay="allow" controls=""></video>';
            }else{
            var dplayer = new DPlayer({
                element: document.getElementById('dplayer'),
                autoplay: true,
                theme: '#FADFA3',
                loop: false,
                screenshot: true, 
                live: true, 
                danmaku: true,
                hotkey: false,
                logo: 'http://www.654320.com/dplayer/logo.png',
                apiBackend: {
                        read: function (endpoint, callback) {
                            console.log('Pretend to connect WebSocket');
                            callback();
                        },
                        send: function (endpoint, danmakuData, callback) {
                            console.log('Pretend to send danamku via WebSocket', danmakuData);
                            callback();
                        }
                    },
                video:{
                   url: url,
                   type: 'auto'
                  }
            });
            }
            </script>
    </body>
</html>